package com.xiaozhen.device.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaozhen.common.core.domain.device.Device;
import com.xiaozhen.common.core.domain.device.queryParams.DeviceQueryParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/11/1 11:31
 * @description:
 */
@Repository
public interface DeviceDao extends BaseMapper<Device> {

    /**
     * 查询设备列表
     * @param page
     * @param queryParam
     * @return
     */
    Page<Device> selectDeviceListByParam(IPage<Device> page, @Param("queryParam") DeviceQueryParam queryParam);
}
